package com.ruoyi.pos.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pos.mapper.ExchangeItemMapper;
import com.ruoyi.pos.domain.ExchangeItem;
import com.ruoyi.pos.service.IExchangeItemService;

/**
 * exchang_itemService业务层处理
 * 
 * @author wzh
 * @date 2021-05-21
 */
@Service
public class ExchangeItemServiceImpl implements IExchangeItemService 
{
    @Autowired
    private ExchangeItemMapper exchangeItemMapper;

    /**
     * 查询exchang_item
     * 
     * @param id exchang_itemID
     * @return exchang_item
     */
    @Override
    public ExchangeItem selectExchangeItemById(Long id)
    {
        return exchangeItemMapper.selectExchangeItemById(id);
    }

    /**
     * 查询exchang_item列表
     * 
     * @param exchangeItem exchang_item
     * @return exchang_item
     */
    @Override
    public List<ExchangeItem> selectExchangeItemList(ExchangeItem exchangeItem)
    {
        return exchangeItemMapper.selectExchangeItemList(exchangeItem);
    }

    /**
     * 新增exchang_item
     * 
     * @param exchangeItem exchang_item
     * @return 结果
     */
    @Override
    public int insertExchangeItem(ExchangeItem exchangeItem)
    {
        return exchangeItemMapper.insertExchangeItem(exchangeItem);
    }

    /**
     * 修改exchang_item
     * 
     * @param exchangeItem exchang_item
     * @return 结果
     */
    @Override
    public int updateExchangeItem(ExchangeItem exchangeItem)
    {
        return exchangeItemMapper.updateExchangeItem(exchangeItem);
    }

    /**
     * 批量删除exchang_item
     * 
     * @param ids 需要删除的exchang_itemID
     * @return 结果
     */
    @Override
    public int deleteExchangeItemByIds(Long[] ids)
    {
        return exchangeItemMapper.deleteExchangeItemByIds(ids);
    }

    /**
     * 删除exchang_item信息
     * 
     * @param id exchang_itemID
     * @return 结果
     */
    @Override
    public int deleteExchangeItemById(Long id)
    {
        return exchangeItemMapper.deleteExchangeItemById(id);
    }
}
